package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SpecialMonitoringMapper;
import com.ruoyi.system.domain.SpecialMonitoring;
import com.ruoyi.system.service.ISpecialMonitoringService;
import com.ruoyi.common.core.text.Convert;

/**
 * 专项监控Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-29
 */
@Service
public class SpecialMonitoringServiceImpl implements ISpecialMonitoringService 
{
    @Autowired
    private SpecialMonitoringMapper specialMonitoringMapper;

    /**
     * 查询专项监控
     * 
     * @param id 专项监控主键
     * @return 专项监控
     */
    @Override
    public SpecialMonitoring selectSpecialMonitoringById(Long id)
    {
        return specialMonitoringMapper.selectSpecialMonitoringById(id);
    }

    /**
     * 查询专项监控列表
     * 
     * @param specialMonitoring 专项监控
     * @return 专项监控
     */
    @Override
    public List<SpecialMonitoring> selectSpecialMonitoringList(SpecialMonitoring specialMonitoring)
    {
        return specialMonitoringMapper.selectSpecialMonitoringList(specialMonitoring);
    }

    @Override
    public List<SpecialMonitoring> getDoseValueByOverhaul(String overhaul_name) {
        return specialMonitoringMapper.getDoseValueByOverhaul(overhaul_name);
    }

    /**
     * 新增专项监控
     * 
     * @param specialMonitoring 专项监控
     * @return 结果
     */
    @Override
    public int insertSpecialMonitoring(SpecialMonitoring specialMonitoring)
    {
        return specialMonitoringMapper.insertSpecialMonitoring(specialMonitoring);
    }

    /**
     * 修改专项监控
     * 
     * @param specialMonitoring 专项监控
     * @return 结果
     */
    @Override
    public int updateSpecialMonitoring(SpecialMonitoring specialMonitoring)
    {
        return specialMonitoringMapper.updateSpecialMonitoring(specialMonitoring);
    }

    /**
     * 批量删除专项监控
     * 
     * @param ids 需要删除的专项监控主键
     * @return 结果
     */
    @Override
    public int deleteSpecialMonitoringByIds(String ids)
    {
        return specialMonitoringMapper.deleteSpecialMonitoringByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除专项监控信息
     * 
     * @param id 专项监控主键
     * @return 结果
     */
    @Override
    public int deleteSpecialMonitoringById(Long id)
    {
        return specialMonitoringMapper.deleteSpecialMonitoringById(id);
    }
}
